package src.main.java.org.proxy;
/*
*
*
* */
public class Test {
    public static void main(String[] args) {
        BigStar bigStar = new BigStar("杨超越");
        Star proxy = ProxyUtil.createProxy(bigStar);
        String sing = proxy.sing("好日子"); //调用代理对象的invoke方法，method.invoke(bigStar,args)则会调用主对象的sing方法
        System.out.println(sing);
        proxy.dance();
    }
}
